Skip to content

[Monitoring] Fix broken scrubbing on monitoring charts#47382

Merged
chrisronline merged 3 commits intoelastic:masterfrom
chrisronline:monitoring/fix_broken_scrub
Oct 8, 2019
Merged

[Monitoring] Fix broken scrubbing on monitoring charts#47382
chrisronline merged 3 commits intoelastic:masterfrom
chrisronline:monitoring/fix_broken_scrub

Conversation

@chrisronline
Copy link
Contributor

Resolves #47380

This PR applies an offset to the updated to and from UTC timestamps received from the onBrush callback to account for the recently applied offset on the server.

While working on this, I realized this bug seems to affect brushing too.

@chrisronline chrisronline added review Team:Monitoring Stack Monitoring team v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.5.0 Feature:Stack Monitoring v7.4.1 labels Oct 4, 2019
@chrisronline chrisronline requested a review from igoristic October 4, 2019 20:29
@chrisronline chrisronline self-assigned this Oct 4, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/stack-monitoring (Team:Monitoring)

@elasticmachine
Copy link
Contributor

💔 Build Failed

@chrisronline
Copy link
Contributor Author

@elasticmachine merge upstream

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

removePopstateHandler();
const { to, from } = xaxis;
const timezone = config.get('dateFormat:tz');
const offset = getOffsetInMS(timezone);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More of nitpick, but I think timezone and offset can be calculated just once in the constructor, unless config.get always gets the latest/updated value

Copy link
Contributor

@igoristic igoristic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as expected. You're on 🔥 Great job!!!

@chrisronline chrisronline merged commit 0edc83a into elastic:master Oct 8, 2019
@chrisronline chrisronline deleted the monitoring/fix_broken_scrub branch October 8, 2019 13:43
chrisronline added a commit to chrisronline/kibana that referenced this pull request Oct 8, 2019
chrisronline added a commit to chrisronline/kibana that referenced this pull request Oct 8, 2019
chrisronline added a commit that referenced this pull request Oct 8, 2019
chrisronline added a commit that referenced this pull request Oct 8, 2019
@chrisronline
Copy link
Contributor Author

Backport:

7.4: 438d09c
7.x: 84ea49d

cqliu1 pushed a commit to cqliu1/kibana that referenced this pull request Oct 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature:Stack Monitoring release_note:skip Skip the PR/issue when compiling release notes review Team:Monitoring Stack Monitoring team v7.4.1 v7.5.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Scrub zooming broken on charts

3 participants